projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e7703e
)
Allow the image scale to be a floating point number
author
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 9 Feb 2016 01:34:48 +0000
(12:34 +1100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 9 Feb 2016 01:34:48 +0000
(12:34 +1100)
* src/image.c (compute_image_size): The scale can be a
floating point number.
src/image.c
patch
|
blob
|
history
diff --git
a/src/image.c
b/src/image.c
index bc5863f919c93b6e6e2fd92c4fdcec528f1732cd..ea5d231720baef865842659459b75abb99d8be15 100644
(file)
--- a/
src/image.c
+++ b/
src/image.c
@@
-8085,7
+8085,7
@@
compute_image_size (size_t width, size_t height,
desired_height = NATNUMP (value) ? min (XFASTINT (value), INT_MAX) : -1;
value = image_spec_value (spec, QCscale, NULL);
- if (N
ATNUM
P (value))
+ if (N
UMBER
P (value))
scale = extract_float (value);
width = width * scale;
height = height * scale;